Skip to content

feat(loops): Add stop button to loop run rows#3738

Merged
charlesvien merged 1 commit into
mainfrom
feat/loop-run-stop-button
Jul 23, 2026
Merged

feat(loops): Add stop button to loop run rows#3738
charlesvien merged 1 commit into
mainfrom
feat/loop-run-stop-button

Conversation

@charlesvien

@charlesvien charlesvien commented Jul 23, 2026

Copy link
Copy Markdown
Member

Problem

An in-progress loop run can only be stopped by opening its task detail page. The loop detail page shows run history and lets you view a run, but there is no way to stop a run or shut down its sandbox from there.

Changes

Active cloud runs (queued or in progress) in the run history list now show a red "Stop run" button to the left of "View run". It reuses the sessions StopCloudRunDialog, so stopping goes through sessionService.stopCloudRun with the run's task and run ids, ends the cloud session and shuts down its sandbox. On success the runs list refetches immediately instead of waiting for the 15s poll. Terminal, local-environment and not-started runs show no button.

How did you test this?

pnpm --filter @posthog/ui typecheck and Biome lint on the loops feature, both clean. Not exercised against a live in-progress loop run.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

@trunk-io

trunk-io Bot commented Jul 23, 2026

Copy link
Copy Markdown

😎 This pull request was merged.

@charlesvien charlesvien changed the title add stop button to loop run rows feat(loops): Add stop button to loop run rows Jul 23, 2026

charlesvien commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit ac84f00.

@charlesvien
charlesvien marked this pull request as ready for review July 23, 2026 06:15
@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "add stop button to loop run rows" | Re-trigger Greptile

@charlesvien charlesvien added the Stamphog This will request an autostamp by stamphog on small changes label Jul 23, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contained UI feature that wires an existing stop-run dialog and service into the loop run list; no auth, billing, migration, dependency, or CI surface touched, and the author has strong recent familiarity with these exact files.

  • Author wrote 100% of the modified lines and has 2 merged PRs in these paths (familiarity STRONG).
  • 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 72L, 2F substantive — within ceiling
tier T1-agent / T1b-small (72L, 2F, single-area, feat)
stamphog 2.0.0b3 .stamphog/policy.yml @ 636a8d6 · reviewed head ac84f00

@charlesvien
charlesvien merged commit 9001b17 into main Jul 23, 2026
41 checks passed
@charlesvien
charlesvien deleted the feat/loop-run-stop-button branch July 23, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant